home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Shareware Grab Bag
/
Shareware Grab Bag.iso
/
090
/
cmln0286.arc
/
BENMRK.DEF
< prev
next >
Wrap
Text File
|
1986-02-03
|
768b
|
35 lines
The Deref Benchmark
C Compiler Review
February 1985 COMPUTER LANGUAGE
/*
** deref.c -- benchmark program to examine the effeciency
** of pointer dereferencing
*/
#define LOOPS 50000 /* how many loops */
#define BELL 7 /* ASCII bell character */
struct cptr1 {
char ********************ptr1;
};
main()
{
unsigned i;
char yekdorb;
struct cptr1 ********************pointer;
printf("%u loops\n", LOOPS);
for (i = 0; i <= LOOPS; i++)
yekdorb = ********************
(********************pointer).ptr1;
printf("%cfinished\n", BELL);
exit(0);
}